package com.simplefactory.gsj20150609;
//客户端调用
public abstract class PizzaStore {
	SimplePizzaFactory factory;
	public PizzaStore(SimplePizzaFactory factory){
		this.factory = factory;
	}
	
	public Pizza orderPizza(){
		Pizza pizza;
		pizza = factory.createPizza("cheese");
		
		pizza.prepare();
		pizza.bake();
		pizza.cut();
		pizza.box();
		
		return pizza;
	}
	
}
